function [ net ] = generateNoisyNet(net, INPUT_LENGTH, OUTPUT_LENGTH, LAYERS)
%CONSTRUCTNET Summary of this function goes here
%   Detailed explanation goes here
global HIDDEN_NEURONS;

input = INPUT_LENGTH + 1; %+1 por el umbral



i = 1;
while( i< LAYERS)
    %se agrega el umbral
    output = HIDDEN_NEURONS;%2n+1
    net{i} = net{i}+((rand(output,input)-0.5)/1.0);
    input = output + 1;
    i = i+1;
end

net{LAYERS} = net{LAYERS}+((rand(OUTPUT_LENGTH,input)-0.5)/1.0);


